<?php
/*
 * Create by Sony K Wibisono,S.Si
 * e-mail : sony@sonywibisono.com.
 */
global $mod,$action;

 
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250"/>
  <meta name="keyword" content="<?php echo $site_keyword;?>" />
  <meta name="description" content="<?php echo $site_description;?>" />
  <link rel="icon" href="support.xbm" type="image/x-icon" />
  <link rel="shortcut icon" href="themes/default/support.xbm" type="image/x-icon" />
<title><?php echo $site_name;?></title>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />   
<link href="themes/default/layout.css" rel="stylesheet" type="text/css" />  
<!--<link href="themes/default/default.css" rel="stylesheet" type="text/css" /> --> 
<?php
include ("include/scripts.php");
?>
 </head>
    <body>
        <div id="pageWrapper">
            <?php if (!isset($mod)){?>
            <h1>Welcome to <?php echo $site_name;?> version <?php echo $version;?> 
	</h1>
            <?php }?>
	<div id="header_logo"><img align="middle" alt="" src="images/logo.png" /><span class="auto-style1">Sharing 
	Our Success Together</span></div><p>&nbsp;</p>
            <div id="header_caption">
                <?php  global $user_id;      
                
            if (isset($user_id)&&$login_status==TRUE){    
            echo "<div id=\"usermenu\"><a href=\"#\">User : "
                .ucwords(get_user_info_id($user_id,'full_name'))."</a></div>";
            
            ?>
                <div id="menuprofile">
                    <ul class="menu_detail">
                        <li class="submenu"><a href="?mod=users&action=chprofile">My Profile</a></li>
                        <li class="submenu"><a href="?mod=users&file=logout">
                                <img src="images/logout.png" class="icon_small" title="Logout"/>Logout</a></li>
                    </ul>
            
                </div>
                <script>
            $("#menuprofile").hide();        
            $("#usermenu").click(function(){
            $("#menuprofile").toggle("slow");    
            });    
            </script>
            <?php
            }
            ?>
            </div>
	<p>&nbsp;</p>